<?php
$v_status = -1;
$v_filter = "";
if(isset($_REQUEST['hdn_filter'])){
	$v_filter=_replace_bad_char(trim($_REQUEST['hdn_filter']));
}	
$v_cate_id= 0;
if(isset($_REQUEST['hdn_cate'])){
	$v_cate_id=$_REQUEST['hdn_cate'];
}
$v_cate_filter= 0;
if(isset($_REQUEST['hdn_cate_filter'])){
	$v_cate_filter = intval($_REQUEST['hdn_cate_filter']);
}
//echo "dfas".$v_cate_id; exit;
if(_is_sqlserver()){
/*	$cmd = @mssql_init("ONEGATE_RecordtypeGetAll", $conn);
	@mssql_bind($cmd, "@p_status", $v_status, SQLINT4);
	@mssql_bind($cmd, "@p_cate_id", $v_cate_id, SQLINT4);
	@mssql_bind($cmd, "@p_filter", $v_filter, SQLVARCHAR);
	$result_all_recordtype = @mssql_execute($cmd);
	$arr_all_recordtype = _get_row_to_array($result_all_recordtype);
	@mssql_free_result($result_all_recordtype);*/
	
	$sql = "Exec ONEGATE_RecordtypeGetAll  ";
	$sql = $sql . $v_status.",";
	$sql = $sql . $v_cate_filter . "," ;
	$sql = $sql ."'". $v_filter."'";
	$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
	$arr_all_recordtype = $ado_conn->GetAll($sql);
	//var_dump($arr_all_recordtype);
	$v_count_recordtype = sizeof($arr_all_recordtype);
}?>
